<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib  prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"  %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE>
<html>
<head>
<base href="<%=basePath%>">
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />

<link href="systemStyle/H-ui.css" rel="stylesheet" type="text/css" />
<link href="systemStyle/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="plugin/font/font-awesome.min.css"  rel="stylesheet" type="text/css"	 />


<script type="text/javascript" src="http://libs.useso.com/js/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="systemJs/H-ui.js"></script>
<script type="text/javascript" src="systemJs/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="systemJs/H-ui.admin.js"></script>
<script type="text/javascript" src="systemJs/aex_admin.js"></script>
<script type="text/javascript" src="plugin/layer/layer.min.js"></script>
<script type="text/javascript" src="plugin/layer/extend/layer.ext.js"></script>


</head>

<body>

	<nav class="Hui-breadcrumb">
		<i class="icon-home"></i> 首页 <span class="c-gray en">&gt;</span>
		 用户管理 <span class="c-gray en">&gt;</span>
		 <a href="javascript:void(0)">用户列表</a>

		<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="icon-refresh"></i></a>

	</nav>
	
	<div class=" pd-20 text-c">
	
			<form class="Huiform" method="post"
				action="manage/puserManager_userList.do" target="_self">
				
				<input type="text" placeholder="输入会员名称或者会员账号:"	name="keyWord" datatype="*1-18" style="width: 300px;" value="${keyWord }" class="input-text"> 
				<input type="submit" value="搜索" 	class="btn radius btn-success ml-20">
			</form>
		</div>
	
	<div class="pd-20">
		<div class="cl pd-5 bg-1 bk-gray">
			<span class="l">
				
				
			</span> 
			<span class="r">共有数据：<strong>${pageBean.itemCount}</strong> 条	</span>
		</div>
		
		
		
		<table class="table table-border table-bordered table-hover table-bg">
		
			<thead>
				<tr>
					<th scope="col" colspan="18">会员列表</th>
				</tr>
				<tr class="text-c">
					<th><input type="checkbox" value="" name=""></th>
					<th>ID</th>
					<th>姓名</th>
					<th>性别</th>
					<th>账号</th>
					<th>email</th>
					<th>注册时间</th>
					<th>状态</th>
					<th width="170">操作</th>
				</tr>
			</thead>
			
			<tbody>
			
				<c:forEach var="item" items="${pageBean.objList }">
					<tr class="text-c">
						<td><input type="checkbox" value="${item.puId }" name=""></td>
						<td>${item.puId }</td>
						<td>${item.puName }</td>
						<td>${item.puSex }</td>
						<td>${item.puAccount }</td>
						<td>${item.puEmail }</td>
						<td>${item.puTime }</td>
						<td>${item.puState }</td>
						<td class="f-14">
							
						<a  style="text-decoration:none"
							title="查看" 
							href="javascript:void(0)" 
							onclick="layer_show(500,500,'查看会员','manage/puserManager_showUser.do?id=${item.puId}')"
							 >
							<i class=" icon-eye-open ml-5"></i>
						</a> 
							
						 <c:if test="${fn:contains(item.puState, '冻结')}">	
						    <a title="解冻" href="javascript:;" onclick="unfrozenAccount('manage/puserManager_unfrozenAccount.do?id=${item.puId}')" class="ml-5" style="text-decoration:none">
							<i class="icon-unlock"></i></a>
						  </c:if>
						  
						 <c:if test="${fn:contains(item.puState, 1)}">
						    <a title="冻结" href="javascript:;" onclick="frozenAccount('manage/puserManager_frozenAccount.do?id=${item.puId}')" class="ml-5" style="text-decoration:none">
							<i class="icon-lock"></i></a>
						</c:if>
							
						</td>
					</tr>
				</c:forEach>
				
			</tbody>
		</table>
	</div>
	<jsp:include page="/systemPage/paginationAdmin.jsp"></jsp:include>
	<jsp:include page="/systemPage/footerAdmin.jsp"></jsp:include>

</body>
</html>
